<!DOCTYPE html>
<html>

<head lang="zh-CN">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery.min.js"></script>
    <script src="jquery.imgMarquee.zy.js"></script>
    <script>
        $(document).ready(function () {
            $('.imgSlideAreaZ').imgSlideZy({
                spacing: 10,
                speed: 20,
                direction: 'right' 
            })
        });
    </script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .imgSlideAreaZ {
            position: relative;
            width: 500px;
            height: 150px;
            overflow: hidden;
        }

        ul.imgSlideItemZ {
            position: absolute;
            top: 0;
            height: 150px;
        }

        ul.imgSlideItemZ li {
            position: relative;
            float: left;
            width: 200px;
            list-style: none;
        }

        ul.imgSlideItemZ li img {
            width: 100%;
        }

        ul.imgSlideItemZ li span {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .5);
            color: #fff;
        }

        .leftZ,
        .rightZ {
            display: block;
            position: absolute;
            top: 50%;
            left: 0;
            width: 30px;
            height: 50px;
            line-height: 50px;
            margin-top: -25px;
            text-align: center;
            background: rgba(250, 0, 0, .5);
            color: #fff;
            cursor: pointer;
        }

        .rightZ {
            left: auto;
            right: 0;
        }
    </style>
</head>

<body>
    <div class="imgSlideAreaZ">
        <ul class="imgSlideItemZ">
            <li><img src="img.jpg"><span>1</span></li>
            <li><img src="img.jpg"><span>2</span></li>
            <li><img src="img.jpg"><span>3</span></li>
            <li><img src="img.jpg"><span>4</span></li>
            <li><img src="img.jpg"><span>5</span></li>
        </ul>
    </div>
</body>

</html>